//
//  HZApiManager.h
//  HZTC_YaDeArt
//
//  Created by MayerF on 17/3/28.
//  Copyright © 2017年 HZTC. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HZApiManager : NSObject
@property (nonatomic, copy)NSString *Session;

+ (instancetype)manager;
+ (void)apiPostParams:(NSDictionary *)params
              success:(void (^)(id objc))success
              failure:(void (^)(NSError *error))failure;

/////////////////////////// 轮询请求 //////////////////////////////
+ (void)timerPostParams:(NSDictionary *)params
                   time:(NSTimeInterval)time
               isRepeat:(BOOL)isRepeat
                success:(void (^)(id objc))success
                failure:(void (^)(NSError *error))failure;
+ (void)timerRemoveAll;
+ (void)timerSuspend;
+ (void)timerStart;
@end
